serial_thread